import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import './styles/global.less';

import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';

import { useAntdvIcons } from '@/components/antdv-icons'; // 全局引入antdv图标
import { setupGlobDirectives } from './directives'; // 全局自定义指令

dayjs.locale('zh-cn');

const app = createApp(App);
app.use(router);
app.use(Antd);

useAntdvIcons(app);
setupGlobDirectives(app);

app.mount('#app');
